package com.yesido.moshi.seven.Segregation_geli;

/**
 * @author yesido
 * @description
 * @date 2023-06-11 23:48
 * @Version 8.3
 */
public class D implements Interface1, Interface3 {
    //需要加上public：因为不能缩小其访问范围
    @Override
    public void operation1() {
        System.out.println("D 实现了 operation1");
    }

    @Override
    public void operation4() {
        System.out.println("D 实现了 operation4");
    }

    @Override
    public void operation5() {
        System.out.println("D 实现了 operation5");
    }
}
